﻿@page
@inject WXWorkSvc.Third.WXWork3rd wx
@model OpenPms.Areas.D.Pages.Setup.WXMsg.EditModel
@{
    ViewData["Title"] = "编辑";
}
<form id="FormPost" method="post">
    <nav aria-label='breadcrumb'>
        <ol class='breadcrumb'>
            <li class='breadcrumb-item'><a asp-page="./Index">微信消息</a></li>
            <li class='breadcrumb-item active' aria-current='page'>
                @ViewBag.Title - @Model.WXMsgType |
                <a href="javascript:;" onclick="Save()">保存</a>
            </li>
        </ol>
    </nav>
    <input type="hidden" asp-for="WXMsgType" />
    <desk-input-items asp-Items="Items"
                      asp-hidden-1=Item.UserId
                      asp-for-1=Item.UserId asp-readonly-1=""
                      asp-for-2=Item.UserName asp-readonly-2=""
                      asp-for-3=Item.IsReceive />

</form>
@section Scripts {
    @Html.Raw(await wx.GetAgentJsConfigAsync(Request, User.GetCorpId()))
    @{
        await Html.RenderPartialAsync("_ValidationScriptsPartial");
    }
    <script>
        function Save() {
            $("#FormPost").submit();
        }
    </script>
}